/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: ll
 * $Id:  ApproveRecord.java 2018-05-18 14:07:11 $
 */






package cn.ll.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.ll.domain.base.BaseDomain;

import java.util.*;

public class ApproveRecord extends BaseDomain{
    private Integer approveType;
    private Long businessId;
    private Long submitTime;
    private Long submitUserId;
    private Long schoolId;
    private String content;

	public ApproveRecord(){
	}
    public void setApproveType(Integer value) {
        this.approveType = value;
    }

    public Integer getApproveType() {
        return this.approveType;
    }
    public void setBusinessId(Long value) {
        this.businessId = value;
    }

    public Long getBusinessId() {
        return this.businessId;
    }
    public void setSubmitTime(Long value) {
        this.submitTime = value;
    }

    public Long getSubmitTime() {
        return this.submitTime;
    }
    public void setSubmitUserId(Long value) {
        this.submitUserId = value;
    }

    public Long getSubmitUserId() {
        return this.submitUserId;
    }
    public void setSchoolId(Long value) {
        this.schoolId = value;
    }

    public Long getSchoolId() {
        return this.schoolId;
    }
    public void setContent(String value) {
        this.content = value;
    }

    public String getContent() {
        return this.content;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Status",getStatus())
			.append("Creator",getCreator())
			.append("CreateDate",getCreateDate())
			.append("LastModifier",getLastModifier())
			.append("LastModDate",getLastModDate())
			.append("ApproveType",getApproveType())
			.append("BusinessId",getBusinessId())
			.append("SubmitTime",getSubmitTime())
			.append("SubmitUserId",getSubmitUserId())
			.append("SchoolId",getSchoolId())
			.append("Content",getContent())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ApproveRecord == false) return false;
		if(this == obj) return true;
		ApproveRecord other = (ApproveRecord)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

